#ifndef FROMMYDIALOG_H
#define FROMMYDIALOG_H

#include "PatientInformation.h"
#include "Siri.h"

#include <QDialog>
#include <QGraphicsDropShadowEffect>
#include <QHBoxLayout>
#include <QTimer>
#include "c/uart.h"
namespace Ui {
class FromMyDialog;
}

class FromMyDialog : public QDialog
{
    Q_OBJECT

public:
    explicit FromMyDialog(QWidget *parent = nullptr);
    Ui::FromMyDialog *ui;
    ~FromMyDialog();
    static Siri *siri;
    void setFuzzy();
    void showSiri();
public slots:
    void showSiri_slot();
    void showPatient_slot(QString str);
    void showServerStatus(bool r);
    void siriDoWork(functionFlag flag);
private slots:
    void on_exit_clicked();
    //void on_pushButton_clicked();

    void on_callPush_clicked();

  //  void on_pushButton_clicked();

protected:
   // bool eventFilter(QObject *watched, QEvent *event);

private:

    QTimer timer;
    QGraphicsBlurEffect *blurEffect=nullptr;
    QHBoxLayout *layoutSiri = nullptr;
};

void async_io_init(void);
void io_handler(int sig, siginfo_t *info, void *context);
#endif // FROMMYDIALOG_H
